module.exports = [
  {
    url: '/api/dashboard',
    type: 'get',
    response: () => {
      return {
        code: 200,
        data: {
          summary: [
            { title: '充值金额', value: '¥' + (Math.random() * 100 + 50).toFixed(2), compare: '同比+' + (Math.random() * 20 + 5).toFixed(0) + '%', trend: Math.random() > 0.3 ? 'up' : 'down' },
            { title: '用户总量', value: (Math.random() * 20000 + 10000).toFixed(0), compare: '月增' + (Math.random() * 3000 + 1000).toFixed(0), trend: 'up' },
            { title: '今日发帖', value: (Math.random() * 50 + 20).toFixed(0), compare: '昨日' + (Math.random() * 30 + 10).toFixed(0), trend: Math.random() > 0.5 ? 'up' : 'down' },
            { title: '待审核', value: (Math.random() * 10 + 1).toFixed(0) + '条', compare: '紧急' + (Math.random() * 3 + 1).toFixed(0) + '条', trend: 'warning' }
          ],
          trend: {
            dates: Array.from({ length: 30 }, (_, i) => `${i + 1}日`),
            posts: Array.from({ length: 30 }, () => Math.floor(Math.random() * 200) + 50),
            users: Array.from({ length: 30 }, () => Math.floor(Math.random() * 100) + 20)
          }
        }
      }
    }
  }
]
